
function init(){
    var divArr = document.getElementsByClassName("appDiv");
    for(let i=0; i<divArr.length; i++){
        divArr[i].onclick=function(){
            //其他标签置灰
            for(let j=0; j<divArr.length; j++){
                divArr[j].style.color="silver";
                divArr[j].children[0].style.backgroundImage="url(images/btn_0"+(j+1)+".png)";
            }
            this.style.color="#0077FF";
            this.children[0].style.backgroundImage="url(images/btn_0"+(i+1)+"-1.png)";
        }
    }
    
}